package com.market.goods.dao.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

/**
 * 优惠券表
 */
@Table(name = "coupon_info")
public class CouponInfoPO implements Serializable {
    /**
     * 主键Id
     */
    private Long id;

    /**
     * 购物券名称
     */
    @Column(name = "coupon_name")
    private String couponName;

    /**
     * 购物券类型 1 现金券 2 折扣券 3 满减券 4 满件打折券
     */
    @Column(name = "coupon_type")
    private String couponType;

    /**
     * 满额数
     */
    @Column(name = "condition_amount")
    private BigDecimal conditionAmount;

    /**
     * 满件数
     */
    @Column(name = "condition_num")
    private Long conditionNum;

    /**
     * 活动编号
     */
    @Column(name = "activity_id")
    private Long activityId;

    /**
     * 减金额
     */
    @Column(name = "benefit_amount")
    private BigDecimal benefitAmount;

    /**
     *折扣
     */
    @Column(name = "benefit_discount")
    private Long benefitDiscount;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 范围类型 1、商品 2、品类 3、品牌
     */
    @Column(name = "range_type")
    private String rangeType;

    /**
     * 商品id
     */
    @Column(name = "spu_id")
    private Long spuId;

    /**
     * 品牌id
     */
    @Column(name = "tm_id")
    private Long tmId;

    /**
     * 品类id
     */
    @Column(name = "category3_id")
    private Long category3Id;

    /**
     * 最多领用次数
     */
    @Column(name = "limit_num")
    private Integer limitNum;

    /**
     *修改时间
     */
    @Column(name = "operate_time")
    private Date operateTime;

    /**
     * 过期时间
     */
    @Column(name = "expire_time")
    private Date expireTime;

    private static final long serialVersionUID = 1L;

    /**
     * ��ȡ����ȯ���
     *
     * @return id - ����ȯ���
     */
    public Long getId() {
        return id;
    }

    /**
     * ���ù���ȯ���
     *
     * @param id ����ȯ���
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * ��ȡ����ȯ����
     *
     * @return coupon_name - ����ȯ����
     */
    public String getCouponName() {
        return couponName;
    }

    /**
     * ���ù���ȯ����
     *
     * @param couponName ����ȯ����
     */
    public void setCouponName(String couponName) {
        this.couponName = couponName == null ? null : couponName.trim();
    }

    /**
     * ��ȡ����ȯ���� 1 �ֽ�ȯ 2 �ۿ�ȯ 3 ����ȯ 4 ��������ȯ
     *
     * @return coupon_type - ����ȯ���� 1 �ֽ�ȯ 2 �ۿ�ȯ 3 ����ȯ 4 ��������ȯ
     */
    public String getCouponType() {
        return couponType;
    }

    /**
     * ���ù���ȯ���� 1 �ֽ�ȯ 2 �ۿ�ȯ 3 ����ȯ 4 ��������ȯ
     *
     * @param couponType ����ȯ���� 1 �ֽ�ȯ 2 �ۿ�ȯ 3 ����ȯ 4 ��������ȯ
     */
    public void setCouponType(String couponType) {
        this.couponType = couponType == null ? null : couponType.trim();
    }

    /**
     * ��ȡ������
     *
     * @return condition_amount - ������
     */
    public BigDecimal getConditionAmount() {
        return conditionAmount;
    }

    /**
     * ����������
     *
     * @param conditionAmount ������
     */
    public void setConditionAmount(BigDecimal conditionAmount) {
        this.conditionAmount = conditionAmount;
    }

    /**
     * ��ȡ������
     *
     * @return condition_num - ������
     */
    public Long getConditionNum() {
        return conditionNum;
    }

    /**
     * ����������
     *
     * @param conditionNum ������
     */
    public void setConditionNum(Long conditionNum) {
        this.conditionNum = conditionNum;
    }

    /**
     * ��ȡ����
     *
     * @return activity_id - ����
     */
    public Long getActivityId() {
        return activityId;
    }

    /**
     * ���û���
     *
     * @param activityId ����
     */
    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    /**
     * ��ȡ�����
     *
     * @return benefit_amount - �����
     */
    public BigDecimal getBenefitAmount() {
        return benefitAmount;
    }

    /**
     * ���ü����
     *
     * @param benefitAmount �����
     */
    public void setBenefitAmount(BigDecimal benefitAmount) {
        this.benefitAmount = benefitAmount;
    }

    /**
     * ��ȡ�ۿ�
     *
     * @return benefit_discount - �ۿ�
     */
    public Long getBenefitDiscount() {
        return benefitDiscount;
    }

    /**
     * �����ۿ�
     *
     * @param benefitDiscount �ۿ�
     */
    public void setBenefitDiscount(Long benefitDiscount) {
        this.benefitDiscount = benefitDiscount;
    }

    /**
     * ��ȡ����ʱ��
     *
     * @return create_time - ����ʱ��
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * ���ô���ʱ��
     *
     * @param createTime ����ʱ��
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * ��ȡ��Χ���� 1����Ʒ 2��Ʒ�� 3��Ʒ��
     *
     * @return range_type - ��Χ���� 1����Ʒ 2��Ʒ�� 3��Ʒ��
     */
    public String getRangeType() {
        return rangeType;
    }

    /**
     * ���÷�Χ���� 1����Ʒ 2��Ʒ�� 3��Ʒ��
     *
     * @param rangeType ��Χ���� 1����Ʒ 2��Ʒ�� 3��Ʒ��
     */
    public void setRangeType(String rangeType) {
        this.rangeType = rangeType == null ? null : rangeType.trim();
    }

    /**
     * ��ȡ��Ʒid
     *
     * @return spu_id - ��Ʒid
     */
    public Long getSpuId() {
        return spuId;
    }

    /**
     * ������Ʒid
     *
     * @param spuId ��Ʒid
     */
    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    /**
     * ��ȡƷ��id
     *
     * @return tm_id - Ʒ��id
     */
    public Long getTmId() {
        return tmId;
    }

    /**
     * ����Ʒ��id
     *
     * @param tmId Ʒ��id
     */
    public void setTmId(Long tmId) {
        this.tmId = tmId;
    }

    /**
     * ��ȡƷ��id
     *
     * @return category3_id - Ʒ��id
     */
    public Long getCategory3Id() {
        return category3Id;
    }

    /**
     * ����Ʒ��id
     *
     * @param category3Id Ʒ��id
     */
    public void setCategory3Id(Long category3Id) {
        this.category3Id = category3Id;
    }

    /**
     * ��ȡ������ô���
     *
     * @return limit_num - ������ô���
     */
    public Integer getLimitNum() {
        return limitNum;
    }

    /**
     * ����������ô���
     *
     * @param limitNum ������ô���
     */
    public void setLimitNum(Integer limitNum) {
        this.limitNum = limitNum;
    }

    /**
     * ��ȡ�޸�ʱ��
     *
     * @return operate_time - �޸�ʱ��
     */
    public Date getOperateTime() {
        return operateTime;
    }

    /**
     * �����޸�ʱ��
     *
     * @param operateTime �޸�ʱ��
     */
    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    /**
     * ��ȡ����ʱ��
     *
     * @return expire_time - ����ʱ��
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * ���ù���ʱ��
     *
     * @param expireTime ����ʱ��
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }
}